<template>
  <div>
    <main><RouterView></RouterView></main>
    <footer>
      <div v-for="(item, index) in data" :key="item.path">
        <RouterLink :to="item.path">{{ item.meta.title }}</RouterLink>
      </div>
    </footer>
  </div>
</template>

<script lang="js">
import { RouterLink, RouterView } from 'vue-router';

export default {
    data(){
return {
data:[]
}
    },
    mounted() {
 this.data=this.$router.options.routes[1].children
    },
    methods: {},
    components: { RouterLink, RouterView}
}
</script>

<style lang="less" scoped>
main {
  width: 100%;
  height: calc(100vh - 50px);
}
footer {
  width: 100%;
  height: 50px;
  background-color: aquamarine;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
</style>
